cmake_minimum_required(VERSION 3.10)
project(MyProject)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)

set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -g")

include_directories(${PROJECT_SOURCE_DIR}/include)

option(ENABLE_BEHAVIOR_TREE "Enable Behavior Tree Module" OFF)
if(ENABLE_BEHAVIOR_TREE)
    set(BT_ROOT "/home/jihong/workspace/BehaviorTree.CPP")
    set(BT_BUILD_DIR "${BT_ROOT}/build")
    include_directories("${BT_ROOT}/include")
    link_directories("${BT_BUILD_DIR}")
    add_definitions(-DHAS_BEHAVIOR_TREE)
endif()

enable_testing()
find_package(GTest REQUIRED)
include_directories(${GTEST_INCLUDE_DIRS})

add_subdirectory(src)
add_subdirectory(tests)